<!doctype html>
<html lang="ch-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .a {
            width: 750px;
            height: 100px;
            border: #333333 solid 1px;
        }
        .b{
            width: 100px;
            height: 100%;
            background-color: wheat;
            /*animation-name: to_right;*/
            /*animation-duration: 3s;*/
            /*animation-delay: 1s;*/
            animation: to_right 2s 1s ease-in infinite;
        }
        @keyframes to_right {
            20%{
                background-color: #FF9D2E;
            }
            40%{
                background-color: chocolate;
            }
            60%{
                background-color: pink;
            }
            80%{
                background-color: yellow;
            }
            100%{
                background-color: crimson;
                transform: translate(650px) rotate(360deg);
                border-radius: 50%;
            }
        }
    </style>
</head>
<body>
<div class="a">
    <div class="b"></div>
</div>
</body>
</html>